package com.lv.api;

import com.lv.data.Result;
import com.lv.dto.AddressDto;
import com.lv.dto.SellerDto;
import com.lv.dto.UserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("shop-user-service")
public interface UserServiceApi {

    @PostMapping("/user/get")
    Result<UserDto> getSellerByName(@RequestParam("username") String username);

    //根据用户Id获取收获地址
    @PostMapping("/address/getAddressById")
    Result<AddressDto> getAddressById(@RequestParam Long arrderssId);
}
